package com.ruoyi.web.service.impl;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.web.domain.ClassSeat;
import com.ruoyi.web.mapper.ClassSeatMapper;
import com.ruoyi.web.service.IClassSeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 *  Service业务层处理
 *

 * @date 2022-03-09
 */
@Service
public class ClassSeatServiceImpl implements IClassSeatService
{
    @Autowired
    private ClassSeatMapper classSeatMapper;

    /**
     * 查询
     *
     * @param id  主键
     * @return
     */
    @Override
    public ClassSeat selectClassSeatById(Long id)
    {
        return classSeatMapper.selectClassSeatById(id);
    }

    /**
     * 查询 列表
     *
     * @param classSeat
     * @return
     */
    @Override
    public List<ClassSeat> selectClassSeatList(ClassSeat classSeat)
    {
        List<ClassSeat> classSeats = classSeatMapper.selectClassSeatList(classSeat);
        return classSeats;
    }

    @Override
    public List<ClassSeat> selectSeatList(ClassSeat classSeat) {
        return classSeatMapper.selectSeatList(classSeat);
    }

    @Override
    public List<ClassSeat> allSelectList(ClassSeat classSeat) {
        List<ClassSeat> classSeats = classSeatMapper.allSelectList(classSeat);
        return classSeats;
    }

    /**
     * 新增
     *
     * @param classSeat
     * @return 结果
     */
    @Override
    public int insertClassSeat(ClassSeat classSeat)
    {
        return classSeatMapper.insertClassSeat(classSeat);
    }

    /**
     * 修改
     *
     * @param classSeat
     * @return 结果
     */
    @Override
    public int updateClassSeat(ClassSeat classSeat)
    {
        return classSeatMapper.updateClassSeat(classSeat);
    }

    /**
     * 批量删除
     *
     * @param ids 需要删除的 主键
     * @return 结果
     */
    @Override
    public int deleteClassSeatByIds(Long[] ids)
    {
        return classSeatMapper.deleteClassSeatByIds(ids);
    }

    /**
     * 删除 信息
     *
     * @param id  主键
     * @return 结果
     */
    @Override
    public int deleteClassSeatById(Long id)
    {
        return classSeatMapper.deleteClassSeatById(id);
    }
}
